package com.findu.control;


import com.example.findu.R;
import com.example.findu.R.id;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class Public_title {
	public ImageView imageView_left,imageView_right;
	public TextView textView;
	public View view;
	
	public Public_title(View view){	
		this.view = view;
		imageView_left = (ImageView) view.findViewById(R.id.public_title_liftImage);
		imageView_right = (ImageView)view.findViewById(R.id.public_title_rightImage);
		textView = (TextView) view.findViewById(R.id.public_title_textView);
	}
	//����ͼƬ
	public void setLeftImage(int imageId){
		imageView_left.setImageResource(imageId);
	}
	//����ͼƬ�ɼ�
	public void setLeftImageVisiable(Boolean ishow){
		if(ishow){
			imageView_left.setVisibility(View.INVISIBLE);
		}else{
			imageView_left.setVisibility(View.VISIBLE);
		}
	}
	//����ͼƬ
		public void setRighttImage(int imageId){
			imageView_right.setImageResource(imageId);
		}
		//����ͼƬ�ɼ�
		public void setRighttImageVisiable(Boolean ishow){
			if(ishow){
				imageView_right.setVisibility(View.INVISIBLE);
			}else{
				imageView_right.setVisibility(View.VISIBLE);
			}
		}
	//�޸ı�������
		public void setTextView(String str){
			textView.setText(str);
		}
}
